#!/bin/bash

#查询容器信息
info=$(docker ps -a |  grep "${1}*"  | awk '{print $1}')

if [[ ${info} ]]; then
    docker rm -f ${info}
else
    echo "not ${1} is running"
fi